#ifndef _STU__H_
#define _STU__H_

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#define MAXSTU 30

typedef struct stu
{
    char name[20];
    char sex;
    int score;
}stu_t;
typedef struct cla
{
    stu_t st[MAXSTU];   //学生人数
    int num;    //班级内学生个数
}cla_t;
enum
{
    EXIT,
    ADD,
    DEL,
    MOD,
    CHE,
    SOR,
    SHOW,
};

void menu();
int add_stu(cla_t* cla);
int del_stu(cla_t* cla);
int mod_stu(cla_t* cla);
unsigned int che_stu(cla_t* cla);
void sort_student(cla_t *cla);
void show_student(cla_t* cla);
int get_num_bit(unsigned int num);


#endif